package lt.marsrutai.mobile.android.map.overlay;

import android.view.View.OnClickListener;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

/**
 * Overlay item with click handling.
 * 
 * @author Justas
 */
public class ClickableOverlayItem extends OverlayItem {
    
    private OnClickListener onClickListener;

    public ClickableOverlayItem(GeoPoint geoPoint, String title, String snippet, OnClickListener onClickListener) {
        super(geoPoint, title, snippet);
        this.setOnClickListener(onClickListener);
    }

    public OnClickListener getOnClickListener() {
        return onClickListener;
    }

    public void setOnClickListener(OnClickListener onClickListener) {
        this.onClickListener = onClickListener;
    }

}
